/*
 * Copyright (C) ${year} Jeffrey Palm.
 *
 * This code is part of the Floto Project (http://jeffpalm.com/floto/).
 * Please consult the LICENSE included in the distribution.
 */
package com.jeffpalm.floto.isight.app;

/**
 * Handlers errors.
 */
public interface ErrorHandler {

  /**
   * Handles an exception.
   * 
   * @param e
   *          thrown Exception.
   */
  void handle(Throwable e);

  /**
   * Handles an exception and prints out the <code>msg</code> iff
   * <code>msg</code> is not <code>null</code>.
   * 
   * @param e
   *          thrown Exception.
   * @param msg
   *          message to print, can by <code>null</code>
   */
  void handle(Throwable e, String msg);
}
